package com.i2works.smartluolong.web.dal.cart.dao;

import com.i2works.smartluolong.utils.basecommon.BaseCommonDAO;
import com.i2works.smartluolong.utils.exception.DAOException;
import com.i2works.smartluolong.web.entity.cart.CartReceiveDO;
import com.i2works.smartluolong.web.entity.cart.CartReceiveQuery;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * 证件签发领取记录表
 *
 * @author Liu Yutao <koal@vip.qq.com>
 * @date 2018/5/22 11:48
 */

@Mapper
@Repository("cartReceiveDAO")
public interface ICartReceiveDAO extends BaseCommonDAO<CartReceiveQuery, CartReceiveDO> {

    /**
     * 根据身份证查询执照领取记录表
     */
    List<CartReceiveDO> queryCartListByIdcard(CartReceiveQuery query) throws DAOException;


    /**
     * 根据身份证查询执照领取记录表数量
     */
    Integer queryCartListByIdcardCount(CartReceiveQuery query) throws DAOException;
}
